package com.campus.campusdelivery.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class MenuItemRequest {
    
    @NotBlank(message = "菜品名称不能为空")
    @Size(max = 100, message = "菜品名称长度不能超过100个字符")
    private String name;
    
    @Size(max = 500, message = "菜品描述长度不能超过500个字符")
    private String description;
    
    private String image;
    
    @NotNull(message = "价格不能为空")
    @Positive(message = "价格必须大于0")
    private BigDecimal price;
    
    @NotNull(message = "库存不能为空")
    private Integer stock;
    
    private Long categoryId;
    
    private Integer sortOrder;
}
